package org.yoome.jtools.utils;

import org.springframework.context.ApplicationContext;


public class ApplicationContextUtil {

    private static ApplicationContext context;

    public static ApplicationContext getContext() {
        return context;
    }

    public static void setContext(ApplicationContext context) {
        ApplicationContextUtil.context = context;
    }

    public static Object getBean(Class<?> requiredType) {
        return context.getBean(requiredType);
    }

}
